//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<console.h>
///	@path	~/src/appear/app/
///	@date	2007/12/11
///	@desc	Console interface.

#pragma once

#include "xeres.h"

#include "graphics/RenderContext.h"

#include "appear/app/input_handler.h"
#include "appear/app/ticker.h"

namespace xeres {

	/*!
		\class	Console
		\brief	Console interface.
	*/
	class Console : public Ticker , public InputHandler
	{
	public:

		/// \ctor
		Console( void ) {}

		/// \dtor
		virtual ~Console( void ) {}

	//@ interface

		/*!
			\brief		Finalize console.
		*/
		virtual void Finalize( void ) = 0;

		/*!
			\brief		Callback when active or deactive.
		*/
		virtual void OnActive( bool is_active ) = 0;


		/*!
			\brief		Render console.
		*/
		virtual void Render( RenderContext& rc ) = 0;
	};

} // namespace xeres
